package com.aoyy.dao;

import com.aoyy.model.Product;
/**=========================================================================
 * <code>IProductDao</code> interface for <code>Product</code> DAO
 * @author Administrator
 * @date 2017-07-13
 * ========================================================================= */
public interface IProductDao extends IBaseDao<Product> {
  /**==========================================================================================================
   * To check <code>product</code> existing in DB or not, if exists, return false, otherwise return  true. 
   * @param productType
   * @param operation, its value is 0 while adding product, but its value is 1 while editing product.
   * @return
   * ==========================================================================================================
   */
  Boolean isUniqueProduct(Product product, Integer operation);
}
